package net.yunzhanyi.generic.domain.model;

import java.io.Serializable;

public class Dynasty implements Serializable {
    private Integer dynastyId;

    private String dynastyName;

    private static final long serialVersionUID = 1L;

    public Integer getDynastyId() {
        return dynastyId;
    }

    public void setDynastyId(Integer dynastyId) {
        this.dynastyId = dynastyId;
    }

    public String getDynastyName() {
        return dynastyName;
    }

    public void setDynastyName(String dynastyName) {
        this.dynastyName = dynastyName;
    }

    public Dynasty(Integer dynastyId, String dynastyName) {
        this.dynastyId = dynastyId;
        this.dynastyName = dynastyName;
    }

    public Dynasty() {
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", dynastyId=").append(dynastyId);
        sb.append(", dynastyName=").append(dynastyName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
